package com.qdlc.p2p.biz.executer.impl;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.executer.BaseExecuter;
import com.qdlc.p2p.common.constant.Global;
import com.qdlc.p2p.dal.model.ActivityParamModel;
import com.qdlc.p2p.dal.model.ActivityPlanHandleModel;

/**
 * 活动方案的Executer -- 主要供core包使用
 * 
 * @author zlhx
 * @version 2.0
 * @date 2015-04-23 14:10
 */
@Service
@Scope(value=ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class ActivityPlanExecuter extends BaseExecuter {

	public void extend() {
		Object apParam = Global.getTransfer().get("ap_param");
		if (apParam != null) {
			ActivityParamModel param = (ActivityParamModel) apParam;
			ActivityPlanHandleModel activityPlanHandleModel = new ActivityPlanHandleModel();
			activityPlanHandleModel.entry(param);
		}
	}
}
